package com.selfdriving.activity;

import net.tsz.afinal.annotation.view.ViewInject;

import com.selfdriving.R;

import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.ImageView;
import android.widget.TextView;

public class SearchJoinActivity extends BaseActivity {
	@ViewInject(id = R.id.topBack, click = "topBack")
	ImageView topBack;

	@ViewInject(id = R.id.topText)
	TextView topText;

	@ViewInject(id = R.id.topRight, click = "topRight")
	Button topRight;
	
	@ViewInject(id=R.id.search_edit)
	EditText search_edit;
	
	private int type;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.search_join);
		topRight.setVisibility(View.GONE);
		type= getIntent().getIntExtra("type", 0);
		if(type==0){
			topText.setText("加盟搜寻");
		}
		else{
			topText.setText("搜寻好友");
			search_edit.setHint("请输入手机号");
		}
	}

	public void topBack(View v) {
		this.finish();
	}

}
